package com.gitee.qdbp.general.trade.api.order.main.model;

import java.util.ArrayList;
import java.util.List;

/**
 * 订单主实体类
 *
 * @author zhh
 * @version 170729
 */
public class OrderFormDetails extends OrderFormBean {

    /** 版本序列号 **/
    private static final long serialVersionUID = 1L;

    private List<OrderItemBean> items;

    /** 获取数据状态:0为正常|其他为删除 **/
    public List<OrderItemBean> getItems() {
        return items;
    }

    /** 设置数据状态:0为正常|其他为删除 **/
    public void setItems(List<OrderItemBean> items) {
        this.items = items;
    }

    public void addItem(OrderItemBean item) {
        if (this.items == null) this.items = new ArrayList<>();
        this.items.add(item);
    }

}
